package com.example.java;

import java.util.StringTokenizer;

public class TestBB1 {
	
	
	public static void main(String[] args) {
		Integer a=1;
		Integer b=a;
		b++;
		System.out.println(a);
		System.out.println(b);
		
		StringBuffer s1 = new StringBuffer("Hello ");
		StringBuffer s2 = new StringBuffer("Hello ");
		System.out.println(s1.equals(s2));
		changeCC(s1,s2);
		System.out.println(s1);
		System.out.println(s2);
		
		short s12=1;
//		s12 = s12+1;
		s12 += 1;
		int x=1,y=2,z=3;
		System.out.println(5/2);
		System.out.println(z--/++x);//整除
//		System.out.println(y+=z--/++x);
		String sg1="aa";
		String sg2="aa";
		char[] sg3={'a','a'};
		System.out.println(sg1.equals(sg2)); //true
		System.out.println(sg1==sg2); //true
		System.out.println(sg1.equals(sg3));//false
		
		StringTokenizer sti = new StringTokenizer("hkll  ssa llp") ;
		while(sti.hasMoreTokens()){
//			System.out.println(sti.nextToken());
			System.out.println(sti.nextElement());
		}
		StringBuffer  sb;
		
		int inarr[] = new int[]{1,2,3}; //public final static
		int arr2[] ={1,3,4};
		int[] number ={1,3,4};
		
		//char[] cr2="ssdfdf";
//		int ia[2][]={1,2}{3,4};
		int ia[][]={{},{}};
		//float fa2=new float[20];
		int [] fa3=new int[20];
	}
	
	public static void changeCC(StringBuffer ss1,StringBuffer ss2){
		ss1.append(" word");
		ss2=ss1;
	}
}
